import base from "../base";
import axios from '../../request/http'
const message = {
    message(){
        return axios.get(`${base.sq}/message`,{...message})
    },
    messageFlag(flag = 1){
        return   axios.get(`${base.sq}/message?flag=${flag}`)
    },
    messageAdd(message){
        return axios.post(`${base.sq}/message`,{...message})
    },
}

export default message;
